package cn.tcmp.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bbs-detail-provider")
public interface DetailClient {

    @RequestMapping(value = "queryAll",method = RequestMethod.GET
            ,produces = {"application/json;charset=utf-8"})
    public String queryAll(@RequestParam("sortId") Integer sortId);


    @RequestMapping(value = "save", method = RequestMethod.GET)
    public String save(@RequestParam("sortId") Integer sortId,
                       @RequestParam("author") String author,
                       @RequestParam("title") String title,
                       @RequestParam("detail") String detail);
}
